//
//  WebRSA.h
//  iHelloxx
//
//  Created by 吴非 on 2022/12/21.
//

#import <Foundation/Foundation.h>

NS_ASSUME_NONNULL_BEGIN

@interface WebRSA : NSObject

//+ (NSString *)kk_encrypt:(NSString *)str publicKey:(NSString *)pubKey;
//+ (NSString *)kk_encrypt:(NSString *)str privateKey:(NSString *)privKey;
//
//+ (NSString *)kk_decrypt:(NSString *)str publicKey:(NSString *)pubKey;
//+ (NSString *)kk_decrypt:(NSString *)str privateKey:(NSString *)privKey;

+ (NSString *)kk_encrypt_public:(NSString *)str;

+ (NSString *)kk_encrypt_private:(NSString *)str;

+ (NSString *)kk_decrypt_public:(NSString *)str;

+ (NSString *)kk_decrypt_private:(NSString *)str;


//// 加载文件
//+ (NSString *)kk_askLoaderPubKeyPathFromPem:(NSString *)filePath;
//+ (NSString *)kk_askLoaderPrivKeyPathFromPem:(NSString *)filePath;

// 最终加载
+(NSString*)key_public;

// 最终加载
+(NSString*)key_private;

@end

NS_ASSUME_NONNULL_END
